<?php


use Vtiful\Kernel\Format;

final class StaticFactory
{
    public static function factory($type)
    {
        if ($type == 'number') {
            return new FormatNumber();
        }

        if ($type == 'string')
            return new FormatString();

        throw new Exception('Eorr type');
    }
}